package com.cyy.demo.scheduler;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyTask2 {

    @Scheduled(cron = "0 1 0 0 0 0")
    public void print1(){
        System.out.println("111111");
    }

    @Scheduled(cron = "0 1 0 0 0 0")
    public void print2(){
        System.out.println("222222");
    }
}
